File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
12
12
set (CMAKE_CXX_STANDARD_REQUIRED ON )
13
13
14
14
option (BUILD_SHARED_LIBS "Build shared library" ON )
15
+ option (BUILD_TESTING "Build and run tests" OFF )
15
16
16
17
# Custom project options
17
18
set (V8PP_HEADER_ONLY 0 CACHE BOOL "Header-only library" )
@@ -20,8 +21,9 @@ set(V8PP_PLUGIN_INIT_PROC_NAME "v8pp_module_init" CACHE STRING "v8pp plugin init
20
21
set (V8PP_PLUGIN_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX} CACHE STRING "v8pp plugin filename suffix" )
21
22
22
23
add_subdirectory (v8pp)
23
- add_subdirectory (plugins)
24
+
24
25
if (BUILD_TESTING)
25
26
enable_testing ()
27
+ add_subdirectory (plugins)
26
28
add_subdirectory (test )
27
29
endif ()
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
# v8pp target
2
2
3
- list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} )
3
+ list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake )
4
4
find_package (V8 REQUIRED)
5
5
6
6
configure_file (config.hpp.in config.hpp)
@@ -83,7 +83,7 @@ include(GNUInstallDirs)
83
83
include (CMakePackageConfigHelpers)
84
84
85
85
write_basic_package_version_file("${PROJECT_BINARY_DIR} /ConfigVersion.cmake" COMPATIBILITY SameMajorVersion)
86
- configure_package_config_file("${PROJECT_SOURCE_DIR} /Config.cmake.in" "${PROJECT_BINARY_DIR} /Config.cmake"
86
+ configure_package_config_file("${PROJECT_SOURCE_DIR} /cmake/ Config.cmake.in" "${PROJECT_BINARY_DIR} /Config.cmake"
87
87
INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /v8pp/cmake)
88
88
89
89
install (TARGETS v8pp EXPORT v8pp_Targets)
You can’t perform that action at this time.
0 commit comments