Skip to content

Commit 5a49c15

Browse files
committed
changed to header only library
1 parent a929953 commit 5a49c15

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

CMakeLists.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ cmake_minimum_required(VERSION 2.8)
22

33
project(mesh-deform)
44

5+
set(CMAKE_CXX_STANDARD 11)
6+
57
if (WIN32)
68
add_definitions("-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_ITERATOR_DEBUG_LEVEL=0")
7-
else()
8-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
9-
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
109
endif()
1110

1211
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@@ -20,13 +19,12 @@ find_package(Sophus QUIET)
2019
include_directories("inc" ${OPENMESH_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} ${SOPHUS_INCLUDE_DIR})
2120
list(APPEND DEFORM_LINK_TARGETS ${OPENMESH_LIBRARIES})
2221

23-
add_library(deform
24-
inc/deform/arap.h
25-
inc/deform/openmesh_adapter.h
26-
inc/deform/trajectory.h
27-
src/unused.cpp
22+
add_library(deform INTERFACE)
23+
target_sources(deform INTERFACE
24+
${CMAKE_CURRENT_SOURCE_DIR}/inc/deform/arap.h
25+
${CMAKE_CURRENT_SOURCE_DIR}/inc/deform/openmesh_adapter.h
26+
${CMAKE_CURRENT_SOURCE_DIR}/inc/deform/trajectory.h
2827
)
29-
set_target_properties(deform PROPERTIES LINKER_LANGUAGE CXX)
3028

3129
add_executable(deform_tests
3230
tests/catch.hpp

src/unused.cpp

Whitespace-only changes.

0 commit comments

Comments
 (0)