Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prototype #25

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include(cmake/version.cmake)
load_git_properties(cpptcl ${CMAKE_BINARY_DIR}/generated)

set(CPPTCL_VERSION 2.2.5)
set(CMAKE_CXX_STANDARD 17)

if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to Release as none was specified.")
Expand Down Expand Up @@ -68,19 +69,10 @@ list(APPEND SRCS ${CMAKE_BINARY_DIR}/generated/cpptcl_version.cpp)
list(APPEND HDRS ${cpptcl_SOURCE_DIR}/cpptcl/cpptcl.h)
list(APPEND HDRS ${cpptcl_SOURCE_DIR}/cpptcl/cpptcl_object.h)
list(APPEND HDRS ${cpptcl_SOURCE_DIR}/cpptcl/version.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/callbacks.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/callbacks_v.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/constructors.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/conversions.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/dispatchers.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/metahelpers.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/methods.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/methods_v.h)
list(APPEND HDRS_DETAILS ${cpptcl_SOURCE_DIR}/cpptcl/details/bind.h)

add_library(cpptcl SHARED ${SRCS} ${HDRS} ${HDRS_DETAILS})
add_library(cpptcl::cpptcl ALIAS cpptcl)
target_compile_features(cpptcl PUBLIC cxx_std_11)
target_compile_features(cpptcl PUBLIC cxx_std_17)
set_target_properties(cpptcl PROPERTIES
CXX_EXTENSIONS OFF
CXX_STANDARD_REQUIRED ON)
Expand All @@ -94,7 +86,7 @@ target_link_libraries(cpptcl PUBLIC ${TCL_STUB_LIBRARY})

add_library(cpptcl_static STATIC ${SRCS} ${HDRS} ${HDRS_DETAILS})
add_library(cpptcl::cpptcl_static ALIAS cpptcl_static)
target_compile_features(cpptcl_static PUBLIC cxx_std_11)
target_compile_features(cpptcl_static PUBLIC cxx_std_17)
set_target_properties(cpptcl_static PROPERTIES
POSITION_INDEPENDENT_CODE ON
CXX_EXTENSIONS OFF
Expand All @@ -108,7 +100,7 @@ target_include_directories(cpptcl_static PUBLIC ${TCL_INCLUDE_PATH})

add_library(cpptcl_runtime STATIC ${cpptcl_SOURCE_DIR}/cpptcl_runtime.c)
add_library(cpptcl::cpptcl_runtime ALIAS cpptcl_runtime)
target_compile_features(cpptcl_runtime PUBLIC cxx_std_11)
target_compile_features(cpptcl_runtime PUBLIC cxx_std_17)
set_target_properties(cpptcl_runtime PROPERTIES
POSITION_INDEPENDENT_CODE ON
CXX_EXTENSIONS OFF
Expand Down
Loading