✨ Added LookupWithContext
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
# moFileReader Main Build Script
|
||||
#
|
||||
# Defined Variables:
|
||||
# - COMPILE_DLL
|
||||
# - COMPILE_DLL
|
||||
# - ON : Compiles the code as a shared Library
|
||||
# - OFF : Compiles the code as a static Library
|
||||
# - BUILD_DEBUG
|
||||
@ -13,12 +13,9 @@
|
||||
# possible settings.
|
||||
#-------------------------------------------------------
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
project(moFileReader)
|
||||
|
||||
# The main include directory
|
||||
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
|
||||
# Let the user choose between static lib and dll
|
||||
# To use it, call cmake -DCOMPILE_DLL=ON
|
||||
option(COMPILE_DLL "Set this to ON if you want to compile the library as an DLL. When this is OFF, a static library is created (default)." OFF)
|
||||
@ -30,6 +27,9 @@ endif ()
|
||||
add_library(moFileReader STATIC ${CMAKE_SOURCE_DIR}/src/moFileReader.cpp ${CMAKE_SOURCE_DIR}/src/mo.cpp)
|
||||
add_executable(moReader ${CMAKE_SOURCE_DIR}/src/mo.cpp)
|
||||
|
||||
target_include_directories(moFileReader PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
target_include_directories(moReader PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
if (COMPILE_DLL)
|
||||
target_compile_definitions(moReader PRIVATE _CONSOLE MOFILE_IMPORT)
|
||||
else ()
|
||||
@ -42,10 +42,6 @@ target_link_libraries(moReader moFileReader)
|
||||
option(BUILD_TEST "Set this to ON if you want to build the test" OFF)
|
||||
|
||||
if(BUILD_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user