Skip to content

Commit b62203a

Browse files
authored
Merge pull request #36 from imageworks/basic_cmake_setup
initial version of cmake config
2 parents cce54a1 + fd8b46f commit b62203a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cmake_minimum_required(VERSION 3.2)
2+
project(pystring CXX)
3+
4+
set(BUILD_SHARED_LIBS YES)
5+
6+
add_library(pystring
7+
pystring.cpp
8+
pystring.h
9+
)
10+
11+
add_executable (pystring_test test.cpp)
12+
TARGET_LINK_LIBRARIES (pystring_test pystring)
13+
14+
enable_testing()
15+
add_test(NAME PyStringTest COMMAND pystring_test)
16+
17+
include(GNUInstallDirs)
18+
19+
install(TARGETS pystring
20+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
21+
)
22+

0 commit comments

Comments
 (0)