Skip to content

Commit

Permalink
Add cmake file for library build.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnzhou committed Dec 1, 2016
1 parent e1fb3d1 commit 7e576bb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 34 deletions.
35 changes: 1 addition & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,2 @@
# Compiled Object files
*.slo
*.lo
*.o
#*.obj
obj/*
obj_debug/*

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
quartet
quartet_release
view_tet
view_tet_release

build/
24 changes: 24 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(Quartet)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG -Wall -funroll-loops")

SET(SRC_FILES src/predicates.cpp
src/geometry_queries.cpp
src/sdf.cpp
src/trimesh.cpp
src/tet_mesh.cpp
src/feature.cpp
src/read_obj.cpp
src/tet_quality.cpp
src/match_features.cpp
src/optimize_tet_mesh.cpp
src/make_signed_distance.cpp
src/make_tet_mesh.cpp)

ADD_LIBRARY(quartet ${SRC_FILES})
TARGET_LINK_LIBRARIES(quartet PRIVATE m)

ADD_EXECUTABLE(quartet_bin src/main.cpp)
TARGET_LINK_LIBRARIES(quartet_bin PRIVATE quartet)

0 comments on commit 7e576bb

Please sign in to comment.