You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
511 B
CMake
25 lines
511 B
CMake
cmake_minimum_required(VERSION 3.3)
|
|
get_filename_component(PLUGIN ${CMAKE_CURRENT_LIST_DIR} NAME_WE)
|
|
message("Configuring ${PLUGIN}")
|
|
set(FILENAME ${PLUGIN}.cpp)
|
|
|
|
add_library(
|
|
${PLUGIN}
|
|
MODULE
|
|
${FILENAME}
|
|
)
|
|
|
|
target_include_directories(
|
|
${PLUGIN} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../../include
|
|
)
|
|
|
|
target_link_libraries(
|
|
${PLUGIN} PRIVATE FLUID_DECOMPOSITION
|
|
)
|
|
|
|
if(WIN32)
|
|
target_compile_options(${PLUGIN} PUBLIC /bigobj)
|
|
endif()
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../../scripts/target_post.cmake)
|